package com.zeng.plugin.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class TableRelative implements Serializable {

    // 1 oneToOne 2 One TO More 3
    private String relativeType;

    // oneToOne - one ;oneToMore - one; MoreToMore more
    private String table1;

    // oneToOne - one ;oneToMore - more; MoreToMore more
    private String table2;

    private String foreignTable;

    // 两个表的主键对应属性
    private Map<String, String> moreProperty;

    // 外键对应属性
    private Map<String, String> foreign;
}
